Create a private repository for docker and a private repository for docker
Thanks to the network speed and the performance of the Greater China LAN, the image download speed in DockerHub is very slow. Even some domestic image ware
Use Docker Registry to quickly build a private image repository1. Background
In Docker, when we run docker pull xxx, we may be curious. Where will Docker find and download the image?
It is actually searched from the address registry.hub.docker.com. This is the public
Build your own Docker private repository Service
Note:For reference only, this solution may be outdated. docker run-p 5000: 5000 is written on the official docker-registry github.
How can I search for images in the private
Sometimes it is inconvenient to use a public repository such as Docker Hub, and the company's private images are not pushed to the docker hub for business security. You can create a local repository for private use. Similar to
Label: docker
Although the official docker hub of docker provides a lot of images, it basically includes what we need to use, but its access is slow. If you want to customize the image, sharing among multiple servers is inconvenient to use this image. At this time, we urgently need a local private warehouse. The foll
Install docker and private repository on centos71. initialize the networkAfter centos7 is installed, yum prompts that the domain name cannot be resolved. view the local network, ifconfig is unavailable, and ip commands in centos7 proxy ifconfig.Ip addr. Only the local loopback address is displayed.Cd/etc/sysconfig/network-scripts, ViewFile corresponding to the NI
Create a private repository using docker
Lab environment:
650) This. width = 650; "Title =" 1.png" alt = "wkiol1sx86lyhdgeaac8mazxmy8919.jpg" src = "http://s3.51cto.com/wyfs02/M00/58/74/wKioL1Sx86LyHDgeAAC8mazxmY8919.jpg"/>
How to connect VMware to viutualbox is not described in detail here.
Install docker on xin7
machine and run the following command:cat./cacert.pem>>/etc/pki/tls/certs/ca-certificates.crt(3) Verificationdocker.yy.comRegistry:
Input in a browser:https://docker.yy.comOr:curl -i -k https://abc:123@docker.yy.com
(4) Steps for using private registry:
Logon:docker login -u abc -p 123 -e "test@gmail.com" https://docker.yy.com
Give the container another name:docker tag centos:centos6 docker.yy.com/centos:centos6
Release:docker push docke
After using the Docker login command, you can push the image to the Dockerhub using the push command, but dockerhub on the public web, the free account has only one private repository free, All that remains is to be made public. Due to various restrictions, the creation of enterprise private warehouses has a variety of
. Set the docker ServiceSet docker to start automatically
systemctl enable docker
4. Configure the image repositoryFirst, put the tar packages of the two images to be used./rootDirectory.
Then manually load the image and LoadregistryAnd then upload the image to the private image r
Environment preparation
Use two machines, one to do Docker private warehouse, one to do Docker image submission
Make sure Docker is installed on both machines and start the Docker service
The name of the Docker
1. Download the repository Image
Docker pull Registry
2. Create a private repository container-D indicates that the background is startedDocker run-D-P 5000: 5000-V/opt/data/Registry:/var/lib/Registry
3. Remove port 5000 from the FirewallFirewall-cmd -- zone = public -- add-Port = 5000/tcp -- Permanent
4. Verify that
How to deal with Docker private repository Registry and dockerregistry in minutes
1. What is the Docker private repository Registry?
The official Docker hub is a good place to manage pu
: This article mainly introduces Docker: building a private repository. if you are interested in the PHP Tutorial, refer to it. Continue. This document describes the simplest steps for building a private repository.
In summary:
Install the registry image and start the con
Many official versions of Linux images can be downloaded directly from the official repository (Public repositories. Considering the security and speed, we may want to set up a private repositories in our own LAN to store our own images. docker-registry is the tool we need.
git clone git clone https://github.com/docker
I. Download Registry#yum install-y python-devel libevent-devel python-pip gcc xz-devel#python-pip install Docker-registry Two. Perform the following actions on all Docker hosts #vi/etc/sysconfig/docker set other_args= '--insecure-registry 192.168.24.205:5000 ' #service Docker restart three. Open the firewall and start
How to build a private docker repository using CentOSPreface
Because most of the image download websites are abroad, Chinese users often encounter slow downloading speeds when downloading images. In addition, when Docker is applied to the production environment, whether the downloaded
Foreword because most of the image download websites are abroad, Chinese users often encounter slow download speeds when downloading images; in addition, when Docker is applied to the production environment, it also faces the security issue of the downloaded Docker image. Because some private data is built in the production environment
Preface
Because most of th
docker:/root# Docker PS CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES f3cb864be528 192.168.32.150:5000/zjzc_centos6.5_templat E "Bash" about a minute ago up about a minute zjzc_test99 d25712059 702 192.168.32.150:5000/zjzc_centos6.5_m2 "bash" 7 minutes ago up 7 minutes Sick_wright 8302f2eb1c9e 192.168.32.150:5000/zjzc_centos6.5_m1 "Bash" Minutes ago up mi
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.